<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>

<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title}</td>
		
	</tr>
	<tr class="li_2">
		<td   align="right" ><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title"  name="proposal/zh_title" label="${param.title}-->项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr class="li_1">
		<td   align="right" ><span class="color_red">*</span>所属产业：</td>
		<td  colspan="2">
			<c:set var="industr_type"><x:out select="$xmlData/data/proposal/industr_type_value" /></c:set>
			<cpt:select id="industr_type"   key="industr_type"  value="${industr_type}" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" id="industr_type_value" name="proposal/industr_type_value" class="required" value="${industr_type}" label="${param.title}-->所属产业">
			<input type="hidden" name="proposal/industr_type_name" value="<x:out select="$xmlData/data/proposal/industr_type_name" />">
		</td>
		<td   align="right" ><span class="color_red">*</span>所属学科：</td>
		<td  colspan="2">
          	<c:set var="subject">{'id':'<x:out select="$xmlData/data/proposal/subject_code" />','name':'<x:out select="$xmlData/data/proposal/subject_name" />'}</c:set>
          	<cpt:tree key="medically" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${subject}"  label="${param.title}-->所属学科"
          		id="subject" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2" />
	        <input id="subject_code" type="hidden" name="proposal/subject_code" class="required" label="${param.title}-->所属学科" value="<x:out select="$xmlData/data/proposal/subject_code" />"/>
            <input id="subject_name" type="hidden" name="proposal/subject_name"  value="<x:out select="$xmlData/data/proposal/subject_name" />"/>
		</td>
	</tr>
	<tr class="li_2">
	<td  align="right" nowrap><span class="color_red">*</span>专题名称：</td>
	<td colspan="2">
			 <c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			<c:set var="sub"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
			<c:set var="domain">{'id':'<x:out select="$xmlData/data/proposal/domain_value" />','name':'<x:out select="$xmlData/data/proposal/domain_name" />'}</c:set>
          	<cpt:tree key="domain1" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${domain}"  label="${param.title}-->专题名称"
          		id="domain" onlyChooseLeaf="true" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="localInitTreeValue" sqlParamVal="{grant_code:${sub},stat_year:${param.statYear }}"/>
	        <input id="domain_value" type="hidden" name="proposal/domain_value" class="required" label="${param.title}-->专题名称" value="<x:out select="$xmlData/data/proposal/domain_value" />"/>
            <input id="domain_name" type="hidden" name="proposal/domain_name"  value="<x:out select="$xmlData/data/proposal/domain_name" />"/>
             <input id="subject_no" type="hidden" name="proposal/subject_no"  value="<x:out select="$xmlData/data/proposal/subject_no" />"/>
             <input id="domainsub_name" type="hidden" name="proposal/domainsub_name"  value="<x:out select="$xmlData/data/proposal/domainsub_name" />"/>
			 <input  type="hidden" id="domainsub_value" name="proposal/domainsub_value"  value="<x:out select="$xmlData/data/proposal/domainsub_value" />"/>
	</td>
	<td  align="right" nowrap>技术领域：</td>
	<td colspan="2">
	        <input id="researcharea_value" type="hidden" name="proposal/researcharea_value"  value="<x:out select="$xmlData/data/proposal/researcharea_value" />"/>
            <span id="researcharea_name"  name="proposal/researcharea_name"><x:out select="$xmlData/data/proposal/researcharea_name" /></span>
	</td>
	</tr>
	<tr class="li_1">
	<td  align="right" nowrap><span class="color_red">*</span>项目开始日期：</td>
		<td colspan="2">
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="${param.title}-->项目开始日期" ></cpt:date> 
		</td>
		<td  align="right" nowrap ><span class="color_red">*</span>项目结束日期：</td>
		<td colspan="2">
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="${param.title}-->项目结束日期"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	<tr class="li_2">
		<td align="right">依托平台（重点实验&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>室、工程技术中心等）：</td>
		<td nowrap  colspan="2" valign="middle">
			<c:set var="innovate2"><x:out select="$xmlData/data/proposal/innovate2_value" /></c:set>
			<c:set var="innovate2_other"><x:out select="$xmlData/data/proposal/innovate2_other" /></c:set>
			<cpt:checkbox key="platform_level" name="innovate2"  value="${innovate2 }" width="55px;" repeatColumn="3"  style="border: 0px; padding: 0px; margin: 0px;float:left;" lastOther="true" otherId="innovate2_other" otherValueName="${innovate2_other }"></cpt:checkbox>
			<input type="text" id="innovate2_other" name="proposal/innovate2_other"  maxlength="20" class="input_css " value="<x:out select="$xmlData/data/proposal/innovate2_other" />" label="${param.title}-->依托平台-->其他">
			<input type="hidden" id="innovate2_value" name="proposal/innovate2_value"  class=" "  value="<x:out select="$xmlData/data/proposal/innovate2_value" />" label="${param.title}-->依托平台">
			<input type="hidden" name="proposal/innovate2_name" value="<x:out select="$xmlData/data/proposal/innovate2_name" />">		
			
		</td>
		<td align="right">所属创新团队：</td>
		<td nowrap  colspan="2" valign="middle">
			<c:set var="innovate_team"><x:out select="$xmlData/data/proposal/innovate_team_value" /></c:set>
			<c:set var="innovate_team_other"><x:out select="$xmlData/data/proposal/innovate_team_other" /></c:set>
			<cpt:checkbox key="platform_level" name="innovate_team"  value="${innovate_team }" width="55px;" repeatColumn="3"  style="border: 0px; padding: 0px; margin: 0px;float:left;" lastOther="true" otherId="innovate_team_other" otherValueName="${innovate_team_other }"></cpt:checkbox>
			<input type="text" id="innovate_team_other" name="proposal/innovate_team_other"  maxlength="20" class="input_css " value="<x:out select="$xmlData/data/proposal/innovate_team_other" />" label="${param.title}-->所属创新团队-->其他">
			<input type="hidden" id="innovate_team_value" name="proposal/innovate_team_value"  class=" "  value="<x:out select="$xmlData/data/proposal/innovate_team_value" />" label="${param.title}-->所属创新团队">
			<input type="hidden" name="proposal/innovate_team_name" value="<x:out select="$xmlData/data/proposal/innovate_team_name" />">		
		</td>
	</tr>
	<tr class="li_1">
	    <td  align="right" >归口管理部门：</td>
		<td colspan="5">
			<x:out select="$xmlData/data/proposal/tjbm_org_name"/>
		</td>
	</tr>
	<tr class="li_2">
	    <td  align="right" ><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="${param.title}-->申报日期"></cpt:date> 
		</td>
	</tr>
	</table>
	<br/>
<script type="text/javascript">
  function setZhTitle(obj){
	  $("#intro_zh_title").text($(obj).val());
  }
  function localInitTreeValue(treeId, treeNode) {
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			return false;
		}
		while (obj != null) {
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "sub_name'],[id$='" + treeId + "sub_name']").val(str.split("-")[0]);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "sub_value'],[id$='" + treeId + "sub_value']").val(treeNode.id.split("-")[0]);
		$("#" + treeId).parents("td").find("[name$='subject_no']").val(str.split("-")[1]);
		$("#" + treeId).parents("tr").find("[name$='researcharea_name']").text(treeNode.parentNode.name);
		$("#" + treeId).parents("tr").find("[name$='researcharea_value']").val(treeNode.parentNode.id);
		$("#" + treeId).val(str);
}
  
  
  $(document).ready(function(){
	  
	  if($("#innovate2_value").val().indexOf("03")!=-1){
		  $("#innovate2_other").css("display","");
		  $("#innovate2_other").addClass("required");
	  }
	  if($("#innovate_team_value").val().indexOf("03")!=-1){
		  $("#innovate_team_other").css("display","");
		  $("#innovate_team_other").addClass("required");
	  }
	  
	  
	  
	  
	  
	  
	  
  })
  
  
  
  
  
  
</script>
